import {observable, action} from "mobx";

class StudentVerifyModel {
    store;
    id;	//序号
    @observable studentID;	//学号
    @observable idNum;	//身份证号
    @observable weChat;	//微信号
    @observable openId;	//微信标识
    @observable workAddress;	//工作地址
    @observable majorName;	//专业
    @observable classes;	//班级
    @observable job;	//职业
    @observable name;	//姓名
    @observable duty;   //职务
    @observable sex;	//性别
    @observable email;	//邮箱
    @observable phone;	//联系电话
    @observable company;	//工作单位
    @observable contact;	//班级联系人
    @observable graduateYear;	//毕业年份
    @observable joinYear;//入学年份

    constructor(store, id, studentID, idNum, weChat,openId, workAddress, majorName, classes, job, name, duty, sex, email, phone, company, contact, graduateYear, joinYear) {
        this.store = store;
        this.id = id;
        this.studentID = studentID;
        this.idNum = idNum;
        this.weChat = weChat;
        this.openId = openId;
        this.workAddress = workAddress;
        this.majorName = majorName;
        this.classes = classes;
        this.job = job;
        this.name = name;
        this.duty = duty;
        this.sex = sex;
        this.email = email;
        this.phone = phone;
        this.company = company;
        this.contact = contact;
        this.graduateYear = graduateYear;
        this.joinYear = joinYear;
    }

    static fromJS(store, object) {
        return new StudentVerifyModel(
            store,
            object.id,
            object.studentID,
            object.idNum,
            object.weChat,
            object.openId,
            object.workAddress,
            object.majorName,
            object.classes,
            object.job,
            object.name,
            object.duty,
            object.sex,
            object.email,
            object.phone,
            object.company,
            object.contact,
            object.graduateYear,
            object.joinYear
        );
    }
}

export default StudentVerifyModel;